

# Install the Knative Serving component
kubectl apply -f https://hub.fastgit.xyz/knative/serving/releases/latest/download/serving-crds.yaml
kubectl apply -f https://hub.fastgit.xyz/knative/serving/releases/latest/download/serving-core.yaml




#Install a networking layer

kubectl apply -f https://hub.fastgit.xyz/knative/net-contour/releases/latest/download/contour.yaml

kubectl apply -f https://hub.fastgit.xyz/knative/net-contour/releases/dlatest/download/net-contour.yaml

kubectl patch configmap/config-network \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}'

kubectl patch configmap/config-domain \
  -n knative-serving \
  --type merge \
  -p '{"data":{"youling.io":""}}'


kubectl patch configmap/config-kourier \
  -n knative-serving \
  --type merge \
  -p '{"data":{"enable-proxy-protocol":"true"}}'



#配置域名解析

# kubectl apply -f https://hub.fastgit.xyz/knative/serving/releases/download/knative-v1.4.0/serving-default-domain.yaml


